import request from "@/utils/request";

// 地图服务列表接口
export const mapLayerListService = (params) => {
    // params格式: { pageNum: 1, pageSize: 10 }
    return request.get('/layer/list', { params })
}
// 新增：发布地图服务接口
export const publishLayerService = (data) => {
    return request.post('/layer/publish', data)
}
export const mapLayerUpdateService = (data) => {
    return request.post('/layer/edit', data)
}

export const mapLayerDeleteService = (id) => {
    return request.delete('/layer/delete', { params: { id } })
}